package com.dldata.display.entity;

import javax.persistence.*;

/**
 * Created by 倪继文 on 2017/6/19.
 */
@Entity
@Table(name = "Sys_Hospital_Branch_ks")
public class SysHospitalBranchKsEntity {
    private String id;
    private String yqid;
    private String ksid;

    @Id
    @Column(name = "id", nullable = false)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "yqid", nullable = true)
    public String getYqid() {
        return yqid;
    }

    public void setYqid(String yqid) {
        this.yqid = yqid;
    }

    @Basic
    @Column(name = "ksid", nullable = true)
    public String getKsid() {
        return ksid;
    }

    public void setKsid(String ksid) {
        this.ksid = ksid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SysHospitalBranchKsEntity that = (SysHospitalBranchKsEntity) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (yqid != null ? !yqid.equals(that.yqid) : that.yqid != null) return false;
        if (ksid != null ? !ksid.equals(that.ksid) : that.ksid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (yqid != null ? yqid.hashCode() : 0);
        result = 31 * result + (ksid != null ? ksid.hashCode() : 0);
        return result;
    }
}
